<script setup lang="ts">
import {ref} from 'vue'

const count = ref<number>(0);
</script>

<template>
  <div class="box">
    <p>n-button是一个全局组件，可以在所有组件直接调用</p>
    <p>点击数：{{ count }}</p>
    <n-button @click="count++">全局组件-按钮</n-button>
  </div>

</template>

<style scoped>
.box{
  border: 1px #dc7d7d solid;
  border-radius: 8px;
  padding: 10px;
  background: rgba(246, 242, 242, 0.44);
}
</style>